<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<html>
    <head>
        <title>人事档案信息明细</title>
        <meta http-equiv="content-type" content="text/html;charset=utf-8">
        <link href="../../css/mine.css" type="text/css" rel="stylesheet">
        <script src="/js/jquery.js"></script>

    </head>

    <body>

        <div class="div_head">
            <span>
                <span style="float:left">当前位置是：-》人事管理 -》人事档案管理</span>
                <span style="float:right;margin-right: 8px;font-weight: bold">
                    <a style="text-decoration: none" href="javascript:void(0)" onclick="history.back()">【返回】</a>
                </span>
            </span>
        </div>
        <div></div>

        <div style="font-size: 13px;margin: 10px 5px">
            <form action="./admin.php?c=goods&a=add" method="post" enctype="multipart/form-data">
                <input type="hidden" id="id" value="${info.id}">
                <table border="1" width="100%" class="table_a">
                    <tr>
                        <td width="120px;">档案编码<span style="color:red">*</span>：</td>
                        <td><input type="text" name="f_goods_name" value="${info.danganid}" readonly /></td>
                    </tr>
                    <tr>
                        <td>所属部门<span style="color:red">*</span>：</td>
                        <td>
                            <input type="text" name="f_goods_name" value="${info.deptName}" readonly />
                        </td>
                    </tr>

                    <tr>
                        <td>档案状态<span style="color:red">*</span>：</td>
                        <td>
                            ${info.status}
                        </td>
                    </tr>
                    <tr>
                        <td>职位名称<span style="color:red">*</span>：</td>
                        <td>
                            <input type="text" readonly name="f_goods_image" readonly value="${info.permname}" />
                        </td>
                    </tr>
                    <tr>
                        <td>职称<span style="color:red">*</span>：</td>
                        <td>
                            <input type="text" name="f_goods_image" readonly value="${info.jobName}" />
                        </td>
                    </tr>


                    <tr>
                        <td>姓名<span style="color:red">*</span>：</td>
                        <td>
                            <input type="text" name="f_goods_image"  readonly value="${info.username}"/>
                        </td>
                    </tr>

                    <tr>
                        <td>性别：</td>
                        <td>
                            ${info.sex}
                        </td>
                    </tr>

                    <tr>
                        <td>EMAIL：</td>
                        <td>
                            <input type="text" name="f_goods_image" readonly value="${info.email}"/>
                        </td>
                    </tr>

                    <tr>
                        <td>联系电话：</td>
                        <td>
                            <input type="text" name="f_goods_image" readonly value="${info.number}" />
                        </td>
                    </tr>

                    <tr>
                        <td>住址：</td>
                        <td>
                            <input type="text" name="f_goods_image" readonly value="${info.address}" />
                        </td>
                    </tr>
                    <tr>
                        <td>身份证号：</td>
                        <td>
                            <input type="text" name="f_goods_image" readonly value="${info.idcard}" />
                        </td>
                    </tr>
                    <tr>
                        <td>户口所在地：</td>
                        <td>
                            <input type="text" name="f_goods_image" readonly value="${info.localhost}" />
                        </td>
                    </tr>
                    <tr>
                        <td>政治面貌：</td>
                        <td>
                            <input type="text" name="f_goods_image" readonly value="${info.zhengzhi}"/>
                        </td>
                    </tr>

                    <tr>
                        <td>毕业院校：</td>
                        <td>
                            <input type="text" readonly name="f_goods_name" readonly value="${info.school}" />
                        </td>
                    </tr>


                    <tr>
                        <td>专业：</td>
                        <td>
                            <input type="text" name="f_goods_image" readonly value="${info.manager}"/>
                        </td>
                    </tr>
                    <tr>
                        <td>学历：</td>
                        <td>${info.diploma}
                        </td>
                    </tr>
                    <tr>
                        <td>薪酬标准：</td>
                        <td>
                            ${info.salaryLevel}
                        </td>
                    </tr>
                    <tr>
                        <td>开户行：</td>
                        <td>
                            <input type="text" name="f_goods_image" readonly value="${info.accountbank}"/>
                        </td>
                    </tr>
                    <tr>
                        <td>银行卡号：</td>
                        <td>
                            <input type="text" name="f_goods_image" readonly value="${info.bankcardnumber}"/>
                        </td>
                    </tr>
                    <tr>
                        <td>社保卡号：</td>
                        <td>
                            <input type="text" name="f_goods_image" readonly value="${info.socialcardnumber}"/>
                        </td>
                    </tr>
                    <tr>
                        <td>登记人：</td>
                        <td>
                            <input type="text" name="f_goods_image" readonly value="${info.levelperson}"/>
                        </td>
                    </tr>
                    <tr>
                        <td>建档时间：</td>
                        <td>

                            <input type="text" name="f_goods_image" readonly
                                   value="<fmt:formatDate value="${info.creattime}" pattern="yyyy-MM-dd"/>" />
                        </td>
                    </tr>
                    <tr>
                        <td>个人履历：</td>
                        <td>
                            <textarea readonly >${info.info}</textarea>
                        </td>
                    </tr>
                    <tr>
                        <td>家庭关系信息：</td>
                        <td>
                            <textarea readonly >${info.family}</textarea>
                        </td>
                    </tr>
                    <tr>
                        <td>备注：</td>
                        <td>
                            <textarea readonly >${info.des}</textarea>
                        </td>
                    </tr>
                    <tr>
                        <td>简历附件：</td>
                        <td>
                            <a href="">XX.doc</a>
                        </td>
                    </tr>

                    <tr>
                        <td colspan="2" align="center">
                            <input type="button" id="passBtn" value="审核通过">
                            <input type="button" id="backBtn" value="驳回">
                        </td>
                    </tr>
                </table>
            </form>
        </div>
        <script type="text/javascript">
            //审核成功
            $("#passBtn").click(function () {
                alert("suc")
                //发送AJAX请求，修改用户审核状态为审核通过
                $.getJSON(
                    "/personnel/edit-pass?id="+$("#id").val(),
                    function (result) {
                        if (result.code==0){
                            //成功
                            alert("档案审核通过！");
                            location.href="/personnel/check";
                        } else {
                            //修改失败
                            alert("档案审核失败！");
                            location.href="/personnel/check";

                        }
                    }
                );

            });

            //审核失败
            $("#backBtn").click(function () {
                //发送AJAX请求，修改用户审核状态为审核驳回
                $.getJSON(
                    "/personnel/edit-back?id="+$("#id").val(),
                    function (result) {
                        if (result.code==0){
                            //成功
                            alert("档案审核驳回！");
                            location.href="/personnel/check";
                        } else {
                            //修改失败
                            alert("档案审核失败！");
                            location.href="/personnel/check";

                        }
                    }
                );
            });
        </script>
    </body>
</html>